package cn.edu.zafu.bigdata.sxa;

public abstract class Shape {
    public abstract double area();
    public abstract double perimeter();

    public final void display(){
        String shapeType = this.getClass().getSimpleName();
        System.out.println("Shape Type: " + shapeType);
        System.out.println("Area: " + area());
        System.out.println("Perimeter: " + perimeter());
    }
}